package com.hailian.fintech.hlhouse_statusserver.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author hanbo
 * @since 2020-06-01
 */
@Data
@Accessors(chain = true)
@TableName("hl_building")
public class Building extends Model<Building> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String name;

    private Integer province;
    private Integer city;
    private Integer county;


    @TableField(exist = false)
    private String provinceaddr;

    @TableField(exist = false)
    private String cityaddr;

    @TableField(exist = false)
    private String areaaddr;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
